﻿using System.IO;
using System.Runtime.Serialization;

namespace Lari.Framework.Utility
{
    public static class Cloning
    {
/*
        public static T Instance<T>(T t)
        {
            T objReturn;
            using (var ms = new MemoryStream())
            {
                var ds = new DataContractSerializer(typeof (T));
                ds.WriteObject(ms, t);
                ms.Position = 0;
                objReturn = (T) ds.ReadObject(ms);
            }

            return objReturn;
        }
*/
    }
}